package org.example.slave.config;

import lombok.Data;
import org.example.slave.bean.MysqlCfg;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author dingrui
 * @since 2022/2/15
 * @description
 */
@Data
@Component
@PropertySource("classpath:slave.properties")
@ConfigurationProperties(prefix = "slave")
public class BasicConfig {

    private MysqlCfg mysqlCfg;
}
